package com.situ.company.service;

import java.util.List;

import com.situ.company.entity.User;
import com.situ.company.util.JSONResult;
import com.situ.company.vo.PageInfo;

// 接口是一个纯粹的抽象类
// 接口和抽象类都不能new对象
public interface IUserService {
	
	public List<User> selectAll();

	public boolean deleteById(int id);

	public PageInfo selectByPage(int pageNo, int pageSize);

	public User login(String name, String password);

	public JSONResult selectLayuiByPage(String name, int page, int limit);

	public boolean insert(User user, String[] roleIds);

	public boolean deleteAll(String[] ids);

	public User selectById(int id);

	public boolean update(User user, String[] roleIds);

}
